package com.valuedaas.schoolsafety.controller.resource.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.valuedaas.schoolsafety.common.enums.DataStatus;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

public class InterfaceVO {

	@JSONField(name = "_id")
	private String _id;

	@NotEmpty(message = "接口名称不能为空")
	private String name;

	private String desc;

	@NotEmpty(message = "接口地址不能为空")
	private String url;

	@NotEmpty(message = "菜单ID不能为空")
	private String menuId;

	@NotNull(message = "接口保护级别不能为空")
	private String protect;

	private DataStatus state;

	public String get_id() {
		return _id;
	}

	public void set_id(String _id) {
		this._id = _id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getMenuId() {
		return menuId;
	}

	public void setMenuId(String menuId) {
		this.menuId = menuId;
	}

    public String getProtect() {
        return protect;
    }

    public void setProtect(String protect) {
        this.protect = protect;
    }

    public DataStatus getState() {
        return state;
    }

    public void setState(DataStatus state) {
        this.state = state;
    }
}
